<div>
	<?php $display_categories = explode(',', get_option('swt_cat') ); foreach ($display_categories as $category) { ?>
	
	
    	<?php
			query_posts( array(
				'showposts' => 1,
				'cat' => $category,
				'post__not_in' => $do_not_duplicate
				)
			);
		?>
        <section class="recommend-cat">
          	<?php while (have_posts()) : the_post(); ?>
        	<h1 class="cat-ico">
				<?php include('cat-post-title.php'); ?>
            </h1>
		    <article class="header-article">
            	<header>
                	<?php theme_thumbnail(); ?>
                	<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo mb_strimwidth(get_the_title(),0,38,"...");?></a></h1>
                </header>
                <div class="digest">
					<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 365,"..."); ?>
				</div>
		        <footer class="article-info">
                    <small>
			            <time class="date"><?php the_time('Y年m月d日') ?></time>
			            <span class="article-num"> 
	                    <?php comments_popup_link('抢沙发', '评论数 1', '评论数 %'); ?>
	                    <?php if(function_exists('the_views')) { print ' &#8260; 被围观 '; the_views();  } ?>
	                    </span>
		            </small>
		        </footer>
				
		    	<?php endwhile; ?>
		    </article>
		    <!-- end:  article-->
		   
		    <ul>
		    	 <?php
					query_posts( array(
						'showposts' => 4,
						'cat' => $category,
						'offset' => 1,
						'post__not_in' => $do_not_duplicate
						)
					);
				?>
		        <?php while (have_posts()) : the_post(); ?>
		        <li class="cat-post">
                  	<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo mb_strimwidth(get_the_title(),0,38,"...");?></a></h1>
                    <div class="digest">
						<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 365,"..."); ?>
					</div>
		        <footer class="article-info">
                    <small>
			            <time class="date"><?php the_time('Y年m月d日') ?></time>
			            <span class="article-num"> 
	                    <?php comments_popup_link('抢沙发', '评论数 1', '评论数 %'); ?>
	                    <?php if(function_exists('the_views')) { print ' &#8260; 被围观 '; the_views();  } ?>
	                    </span>
		            </small>
		        </footer>
				<!-- end: info -->
                 </li>
		        <!-- end: cat_post -->
		        <?php endwhile; ?>
		    </ul>
			<!-- end: cat_post_box -->
		</section>

<?php } ?>
</div>